<?php
namespace App\Api\Controller\Database;

use app\api\controller\Api;
use app\common\supplier\model\SupplierProduct;
use think\response\Json;

class Special extends Api {
    /**
     * Summary of cars
     * @return \think\response\Json
     */
    public function cars(): Json
    {
        $model = new SupplierProduct();
        $rows = $model->where('category_id', 1)->column('id,title');


        return success($rows);
    }
}